package com.woniuxy.microsystemuapserver.service.impl;

import com.woniuxy.microsystemuapserver.bean.DeptBean;
import com.woniuxy.microsystemuapserver.mapper.DeptMapper;
import com.woniuxy.microsystemuapserver.mapper.RoleMapper;
import com.woniuxy.microsystemuapserver.service.DeptService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author: huhenggg
 * @Date: 2021/1/25 0025 下午 4:42
 */
@Service
public class DeptServiceImpl implements DeptService {

    @Resource
    private DeptMapper deptMapper;


    @Resource
    private RoleMapper roleMapper;

    /**
     * 查询所有部门
     * @return
     */
    @Override
    public List<DeptBean> findAllDept() {
        return deptMapper.findAll();
    }

    @Override
    public int updateDeptBean(DeptBean deptBean) {
        return deptMapper.updateDeptBean(deptBean);
    }
}
